package hotel.switchs.oversea.biz.controller;

import hotel.base.oversea.utils.Result;
import hotel.switchs.oversea.api.VO.request.ActiveTagVO;
import hotel.switchs.oversea.biz.service.SwitchHotelActiveTagService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 促销活动记录表(SwitchHotelActiveTag)表控制层
 *
 * @author makejava
 * @since 2020-09-10 15:51:53
 */
@RestController
@RequestMapping("switchHotelActiveTag")
public class SwitchHotelActiveTagController {
    /**
     * 服务对象
     */
    @Resource
    private SwitchHotelActiveTagService switchHotelActiveTagService;


    /**
     * <H1>新增活动信息</H1>
     *
     * @param activeTagVO 实体对象
     * @return hotel.base.oversea.utils.Result<java.lang.Object>
     * @author HuangT
     * @Date 2020/9/10 16:27
     */
    @PutMapping("/insertActive")
    public Result<Object> insertActive(@RequestBody ActiveTagVO activeTagVO) {
        return switchHotelActiveTagService.insertActive(activeTagVO);
    }


    /**
     * <H1>获取活动列表</H1>
     *
     * @param activeTagVO 实体对象
     * @return hotel.base.oversea.utils.Result<java.lang.Object>
     * @author HuangT
     * @Date 2020/9/11 14:33
     */
    @PostMapping("/activeInfoList")
    public Result<Object> activeInfoList(@RequestBody ActiveTagVO activeTagVO) {
        return switchHotelActiveTagService.activeInfoList(activeTagVO);
    }

}
